Make work on windows and posix at the same time. (sigh)
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 30 Aug 2002 04:22:15 +0000 (04:22 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 30 Aug 2002 04:22:15 +0000 (04:22 +0000)
commitb3a04da35c25006f7bff5e3e3f397df069e16d45
tree0613b4197bfd98ab7bb7832866551a5fa6519c0a
parent655261ff9c5e543a99ab7b35bd8b3240c791d79e
Make work on windows and posix at the same time.   (sigh)
Better test for EOF so we don't duplicate last waypoint in  a file.
Move all the POSIX terminit into body of that function.
Add file handlers for Windows.
Add "b" to all fopens to set binary mode for windows.

git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@50 f51c46e8-681c-474f-0cfe-069cfd0219fb
gpsbabel/magproto.c